package com.example.helloandroidworld;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;


public class MapNearestUser extends Activity
{
	private Button locateRadius, locateByUser;
	@Override
	public void onCreate( Bundle savedInstanceState )
	{ 
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mapnearestuser);
		setUpButtons();

	}
	
	private void setUpButtons()
	{
		// use the view variable to bind it to the numPhone, textMessage, and goSensSMS java code
	//	myContacts = (Button) findViewById(R.id.btnContacts);
		locateRadius = (Button) findViewById(R.id.buttonLocateRadius);
		locateByUser = (Button) findViewById(R.id.buttonLocateByUser);
		
		
		locateRadius.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity( new Intent(MapNearestUser.this, MapNearestLocate.class));}});
		
		locateByUser.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity( new Intent(MapNearestUser.this, MapNearestLocate.class));}});
	}
}